import BaseModel from '@/common/baseModelV3.js'
export default class BannerModel extends BaseModel{
	constructor(source, func) {
		super(source,func)
	}
	objecrelation(source,func){
		super.funcjudge(func)
		return func(source)
	}
	objectProcessor(source, func) {
		return new Banner(source)
	}
	skeletonProcessor(){
		for (var i = 0; i < 1; i++) {
			this.data.push(new Banner({title:'',image:'https://cdn.uviewui.com/uview/swiper/3.jpg'}))
		}
	}
}
class Banner extends BaseModel{
	constructor(source) {
		super()
		this.image = super.checkURL(source?.image || '', getApp().globalData.img_pre)
		this.title = source?.title || ''
		this.path = source?.path || ''
		this.type = source?.type || ''
	}
}
